package com.kimo3412.amqp_test.service;

// LogProducer.java
import org.springframework.amqp.rabbit.core.RabbitTemplate;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class LogProducer {
    @Autowired
    private RabbitTemplate rabbitTemplate;

    public void sendLog(String message) {
        rabbitTemplate.convertAndSend("logQueue", message);
    }
}
